package com.webdrider.model.util;

import junit.framework.Assert;

import org.junit.Test;

import com.webdrider.servlet.util.RequestAction;

public class RequestActionTest {

	@Test
	public void testContainsLoginSuccesfully() {
		String value1 = "LOGIN";
		String value2 = "Login";
		String value3 = "login";
		
		Assert.assertNotNull(RequestAction.contains(value1));
		Assert.assertNotNull(RequestAction.contains(value2));
		Assert.assertNotNull(RequestAction.contains(value3));
	}
	
	@Test
	public void testContainsLogoutSuccesfully() {
		String value1 = "LOGOUT";
		String value2 = "Logout";
		String value3 = "logout";
		
		Assert.assertNotNull(RequestAction.contains(value1));
		Assert.assertNotNull(RequestAction.contains(value2));
		Assert.assertNotNull(RequestAction.contains(value3));
	}
	
	@Test
	public void testContainsAddUserSuccesfully() {
		String value1 = "ADD USER";
		String value2 = "Add User";
		String value3 = "Add user";
		String value4 = "ADD_USER";
		String value5 = "Add_User";
		String value6 = "add_user";
		
		Assert.assertNotNull(RequestAction.contains(value1));
		Assert.assertNotNull(RequestAction.contains(value2));
		Assert.assertNotNull(RequestAction.contains(value3));
		Assert.assertNotNull(RequestAction.contains(value4));
		Assert.assertNotNull(RequestAction.contains(value5));
		Assert.assertNotNull(RequestAction.contains(value6));
	}
	
	@Test
	public void testContainsRegisterQueuePlayerSuccesfully() {
		String value1 = "REGISTER QUEUE PLAYER";
		String value2 = "Register Queue Player";
		String value3 = "Register queue player";
		String value4 = "REGISTER_QUEUE_PLAYER";
		String value5 = "Register_Queue_Player";
		String value6 = "register_queue_player";
		
		Assert.assertNotNull(RequestAction.contains(value1));
		Assert.assertNotNull(RequestAction.contains(value2));
		Assert.assertNotNull(RequestAction.contains(value3));
		Assert.assertNotNull(RequestAction.contains(value4));
		Assert.assertNotNull(RequestAction.contains(value5));
		Assert.assertNotNull(RequestAction.contains(value6));
	}
}
